package com.quan.sso.fegin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.quan.common.base.bean.ResultBean;

@FeignClient(name = "system-service", fallback = SystemUserServiceFallback.class)
public interface SystemUserService {
	
	@GetMapping(value = "/system/user/findByAccount/{account}")
	public ResultBean findByAccount(@PathVariable(name="account") String account) ;
	
	@GetMapping(value = "/system/user/findRolesByUserId/{userId}")
	public ResultBean findRolesByUserId(@PathVariable(name="userId") Long userId) ;

	@GetMapping(value = "/system/user/findPermissionsByUserId/{userId}")
    public ResultBean findPermissionsByUserId(@PathVariable(name="userId") Long userId) ;
	
}
